
// 切换到注册页面
function switchToRegister() {
    document.getElementById("text").innerHTML = "注册页面";
    document.getElementById("login-form").style.display = "none";
    document.getElementById("register-form").style.display = "block";
    document.getElementById("login-username").value = "";
    document.getElementById("login-password").value = "";
}

// 切换到登录页面
function switchToLogin() {
    document.getElementById("text").innerHTML = "登录页面";
    document.getElementById("register-form").style.display = "none";
    document.getElementById("login-form").style.display = "block";
    document.getElementById("register-username").value = "";
    document.getElementById("register-password").value = "";
}
document.querySelector('#visitor').addEventListener('click',()=>{
    window.location.href='../Gamecenter.html'
})